package edu.cebanc.spring.bean;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;

public class Account {
	
	@NotNull
	@Size(min=1, max=30)
	@Email
	private String email;
	
	@NotNull
	@Size(min=1, max=30)
	private String name;
		
	public Account(){
		
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}	
}
